//
//  LoginService.h
//  HxgProject
//
//  Created by hxg on 2018/3/25.
//  Copyright © 2018年 XMYY-19. All rights reserved.
//

#import <Foundation/Foundation.h>
@class ResObject,UserInfo;

@interface LoginService : NSObject



/**
 获取验证码

 @param phoneNum 电话号码
 @param callBack 回调函数
 */
- (void)getVerifyCodeByPhone:(NSString *)phoneNum
                withCallBack:(void(^)(ResObject *)) callBack;

/**
 注册

 @param phoneNum 手机号
 @param psd 密码
 @param verifyCode 验证码
 @param callBack 回调
 */
- (void)registerByPhone:(NSString *)phoneNum
                     withPsd:(NSString *)psd
              withVerifyCode:(NSString *)verifyCode
                withCallBack:(void(^)(ResObject *)) callBack;

/**
 重置密码
 
 @param phoneNum 手机号
 @param newPwd 密码
 @param verifyCode 验证码
 @param callBack 回调
 */
- (void)resetPsw:(NSString *)phoneNum
                     withnewPwd:(NSString *)newPwd
              withVerifyCode:(NSString *)verifyCode
                withCallBack:(void(^)(ResObject *)) callBack;


/**
 登陆接口

 @param phoneNum 手机号
 @param newPwd 密码
 @param callBack 返回的回调
 */
- (void)loginWithPhone:(NSString *)phoneNum
                   pwd:(NSString *)newPwd
    withCallBack:(void(^)(ResObject *res,UserInfo *userInfo)) callBack;

@end
